
import request from '@/utils/request'
export function chat(data) {
  return request({
    url: '/chat/ai',
    method: 'post',
    data: data
  })
}

export function getChat(data) {
  return request({
    url: '/chat/ai/his',
    method: 'post',
    data: data
  })
}


export function saveChat(data) {
  return request({
    url: '/chat/ai/save/his',
    method: 'post',
    data: data
  })
}


export function deleteChat(data) {
  return request({
    url: '/chat/ai/delete',
    method: 'post',
    data: data
  })
}


export function clearChat() {
  return request({
    url: '/chat/ai/clear',
    method: 'post',
    
  })
}